package com.example.springproject.xuwsh.config;

import com.example.xuwsh.myBatisPlus.config.BatchSqlInjector;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: xuwsh
 * @Date: 2023/09/19/10:09
 * @Description:
 */
@Configuration
@MapperScan(value = "com.example.**.mapper")
public class MyBatisPlusConfig {


    /**
     * 将批量配置交给spring管理
     *
     * @return
     */
    @Bean
    public BatchSqlInjector insertBatchSomeColumn() {
        return new BatchSqlInjector();
    }
}
